package com.alkin.thing.common.constant;

/**
 * DCU设备常量
 */
public abstract class DCUConstants {
    /**
     * 请求topic模板（通过pkt_type区分不同请求方法）
     */
    public static final String REQ_TOPIC = "cntb/{}/single/{}";
    /**
     * 响应topic模板
     */
    public static final String RESP_TOPIC = "cntb/{}/{}";

    /**
     * 请求topic模板推送dcu消息（通过type区分不同请求方法）
     */
    public static final String REQ_ZHKJ_TOPIC = "zhkj/{}/device";


    /**
     * 请求topic模板推送红外传感消息（通过type区分不同请求方法）
     */
    public static final String REQ_TEMPERATURE_TOPIC = "zhkj/device/{}";


    public static final String REQ_TEMPERATURE_ADDRESS = "zhkj/device";


    /**
     * 响应登录
     */
    public static final String RESP_SINGLE_TOPIC="cntb/{}/single/{}";

    /**
     * RESULT-成功
     */
    public static final int RESULT_SUCCESS = 1;
    /**
     * RESULT-失败
     */
    public static final int RESULT_FAIL = 0;


    /**
     * Signal 无效数据状态
     */
    public static final int SIGNAL_STATUS_INVALID = 1;
    /**
     * Signal 有效数据状态
     */
    public static final int SIGNAL_STATUS_VALID = 0;

    /**
     * 字段名前缀（因为存在数字的标识)
     */
    public static final String COL_PREFIX = "c_";


    /**
     * pkt_type
     */
    public static final String PKT_TYPE_KEY = "pkt_type";

    /**
     * GET_DATA
     */
    public static final String GET_DATA_TYPE = "get_data";

    /**
     * GET_DATA_RESP
     */
    public static final String GET_DATA_RESP_TYPE = "get_data_resp";
    /**
     * SET_ALARM_PARAM_RESP
     */
    public static final String SET_ALARM_PARAM_RESP_TYPE="set_alarm_param_resp";

    /**
     * GET_ALARM_RESP
     */
    public static final String GET_ALARMS_RESP_TYPE="get_alarms_resp";

    /**
     * DCU请求time缓存key，用于标识设备和time关联
     */
    public static final String DCU_REQUEST_TIME_KEY="cache-dcu-request-time-key";

}
